home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / misckit / miscgiskit / MiscWorldCoord.h < prev    next >
Encoding:
Text File  |  1995-07-08  |  1.5 KB  |  57 lines

  1. /*=========================== MiscWorldCoord.h ==============================*/
  2. /* MiscWorldCoord class contains and supports values representing locations
  3.    in a World coordinate system. Angles are stored internally as radians
  4.    at all times, but may be stored or retrieved as degrees.
  5.  
  6.    DMA Release 0.8, Copyright @1993 by Genesis Project, Ltd. All Rights
  7.    Reserved. For further information on terms and conditions see
  8.         the MiscKit license.
  9.  
  10. HISTORY
  11. 25-Feb-93  Dale Amon at GPL
  12.        Created.
  13. */
  14.  
  15. #import <appkit/appkit.h>
  16. #import <misckit/miscgiskit.h>
  17.  
  18. /* ordering of coordinates in storage */
  19. #define MISC_LATITUDE    0
  20. #define MISC_LONGITUDE    1
  21. #define MISC_ALTITUDE    2
  22.  
  23. @interface MiscWorldCoord:MiscCoord
  24. {
  25. }
  26.  
  27. -initDescription: (char *) txt constants: anObject;
  28.  
  29. -setCoordLatitudeDegrees: (double) lat
  30.         longitudeDegrees: (double) lon
  31.             altitude: (double) alt;
  32.  
  33. -setCoordLatitudeRadians: (double) lat
  34.         longitudeRadians: (double) lon
  35.             altitude: (double) alt;
  36.  
  37. -coordLatitudeDegrees: (double *) lat
  38.      longitudeDegrees: (double *) lon
  39.          altitude: (double *) alt;
  40.  
  41. -coordLatitudeRadians: (double *) lat
  42.      longitudeRadians: (double *) lon
  43.          altitude: (double *) alt;
  44.  
  45. -(double) latitudeRadians;
  46. -(double) latitudeDegrees;
  47. -(double) longitudeRadians;
  48. -(double) longitudeDegrees;
  49. -(double) altitude;
  50.  
  51. /* blocked methods */
  52. -initDescription: (char *) txt
  53.        converter: (id <MiscCoordConverterServer>) aConverter
  54.        constants: anObject;
  55.  
  56. @end
  57.